package com.example.common.model;

import java.lang.reflect.Field;
import java.util.Date;
import cn.hutool.core.date.DatePattern;
import com.example.common.base.BaseBean;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 用于存放文章表的图片关系，现在暂时不用(image)
 *
 * @author 510
 * @version 1.0.0 2021-04-23
 */
@ApiModel(description = "用于存放文章表的图片关系")
@TableName("image")
public class Image extends BaseBean {
    /** 版本号 */
    private static final long serialVersionUID = -4098784010243408974L;

//    {
//        Class aClass = this.getClass();
//        Field[] fields = aClass.getDeclaredFields();
//        try {
//            for (Field field : fields) {
//                field.setAccessible(true);
//
//                if (field.getType() == String.class) {
//                    field.set(this, "null");
//                }
//
//                if (field.getType() == Integer.class) {
//                    field.set(this, 1);
//                }
//
//                if (field.getType() == Date.class) {
//                    field.set(this, new Date());
//                }
//            }
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//    }

    @ApiModelProperty(value = "")
    private String createdBy;

    @ApiModelProperty(value = "")
    @JsonFormat(timezone = "GMT+8", pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date creationDate;

    @ApiModelProperty(value = "")
    private String lastUpdatedBy;

    @ApiModelProperty(value = "")
    @JsonFormat(timezone = "GMT+8", pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date lastUpdateDate;

    @ApiModelProperty(value = "")
    private Integer deleteFlag;

    /* This code was generated by TableGo tools, mark 1 end. */

    /* This code was generated by TableGo tools, mark 2 begin. */

    /**
     * 获取createdBy
     * 
     * @return createdBy
     */
    public String getCreatedBy() {
        return this.createdBy;
    }

    /**
     * 设置createdBy
     * 
     * @param createdBy
     */
    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    /**
     * 获取creationDate
     * 
     * @return creationDate
     */
    public Date getCreationDate() {
        return this.creationDate;
    }

    /**
     * 设置creationDate
     * 
     * @param creationDate
     */
    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    /**
     * 获取lastUpdatedBy
     * 
     * @return lastUpdatedBy
     */
    public String getLastUpdatedBy() {
        return this.lastUpdatedBy;
    }

    /**
     * 设置lastUpdatedBy
     * 
     * @param lastUpdatedBy
     */
    public void setLastUpdatedBy(String lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    /**
     * 获取lastUpdateDate
     * 
     * @return lastUpdateDate
     */
    public Date getLastUpdateDate() {
        return this.lastUpdateDate;
    }

    /**
     * 设置lastUpdateDate
     * 
     * @param lastUpdateDate
     */
    public void setLastUpdateDate(Date lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }

    /**
     * 获取deleteFlag
     * 
     * @return deleteFlag
     */
    public Integer getDeleteFlag() {
        return this.deleteFlag;
    }

    /**
     * 设置deleteFlag
     * 
     * @param deleteFlag
     */
    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    /* This code was generated by TableGo tools, mark 2 end. */
}